package servidor;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;

import rmi.*;

public class Servidor {

	//Main Servidor
	public static void main(String[] args) {
		new Servidor();
	}
	
	public Servidor() {
		try {
			IGestionLibro gestionLibro = new GestionLibro();
			Naming.rebind("GestionLibro", gestionLibro);
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
	
}
